package com.itheima.entity;

import lombok.Data;

import java.util.List;

/**
 * 封装分页列表结果
 */
@Data
// @AllArgsConstructor
// @NoArgsConstructor
public class PageBean {
    private Long total;     //总条数
    private List rows;      //分页结果列表

    public PageBean() {
    }
    public PageBean(Long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
